package com.smart.face;

import com.baidu.aip.face.AipFace;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Bean;

/**
 * @author group3
 * @date 2021/01/08 11:57
 */
@SpringBootApplication
@EnableDiscoveryClient
public class FaceApplication {
    public static void main(String[] args) {
        SpringApplication.run(FaceApplication.class, args);
    }

    /**
     * 单例aipFace
     *
     * @return {@link AipFace}
     * @author jinMengLong
     * @date 2021/1/8 16:05:33
     */
    @Bean
    public AipFace aipFace() {
        return new AipFace("23509083", "WueXH9Ug7g1eYudKGxSa76Wh", "e4mhMGou9mD0Kwwh05kXndFn3yZzewMQ");
    }

}
